<%@ page language="java" contentType="text/html;charset=UTF-8"%>
<%@ include file="/commons/taglibs.jsp"%>
<%@ include file="/commons/messages.jsp"%>
<html>
<head>
<title></title>
<script language="JavaScript" type="text/javascript"
	src="${ctx}/scripts/div/common.js"></script>
</head>
<BODY>
<script language="JavaScript" type="text/javascript">
function closeWinAndRefresh(){

    var editFlag='${flag}';
	if(editFlag == 'addMeter'){

	}else if(editFlag == 'buildingOprator'){
	  var iframe=findFrame("main");
	  if('${buildingId}'!=''){
	   iframe.refreshTree('${buildingId}');
	  }else {
	   iframe.refreshTree();
	  }


	 }else {
	 var iframe=findFrame("mainFrame");
	   iframe.refleshFrame();

	 }

	 windowClose();


}
closeWinAndRefresh();
</script>
</BODY>
</HTML>
